<?php

namespace model;

class ondutys
{
      const TABLE = "onduty";

      private static function db($table = null)
      {
            return \libs\db::Init($table);
      }
      //关联查找一条数据
      public static function findData()
      {
            return self::db(self::TABLE)->where('DATEDIFF(ondutytime,NOW()) = 0')->cache(20000)->find();
      }
}
